<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://www.joda.org/joda/time/tags" prefix="joda"%>
<script type="text/javascript"></script>
<link href="css/apps/reportreseted/list.css" type="text/css" rel="stylesheet" />
<script src="scripts/apps/reportreseted/list.js" type="text/javascript"></script>
<div id="depts">
   
</div>
<div class="input-append">
<input  class="datepicker" readonly />
<button id="date" class="btn btn-info">日期</button>

</div>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th width="100">日期</th>
<th>部门</th>
<th>清零状态</th>
<th>管理</th>
</tr>
<tr>
<td colspan="5">

</td>
</tr>
</thead>
<tbody>
   <c:forEach items="${pager.rows}" var="item">
     <tr>
       <td>
             <span class="label label-warning">
               
                <joda:format value="${item.dueDate}" pattern="yyyy-MM-dd" var="dueDate"/>
                ${dueDate}
             </span>           
                     
       </td>
       <td>
       <span class="label label-success">
         ${item.department.name}
       </span>
       </td> 
       <td>
       <i class="${item.resetable?'icon-ok':'icon-remove'}"></i>
       </td>
       <td>
          <button 
          id="togglebtn" 
          onclick="toggleOne('${item.department.id}','${dueDate}')"
          class="btn btn-danger"
          >
<i class="icon-white icon-remove-sign"></i>
</button>      
       </td>
     </tr>
   </c:forEach>
</tbody>
<tfoot>
  <tr>
    <td colspan="4">     
    </td>
  </tr>
</tfoot>
</table>